package Utilidades;

public class Formas {

	private static Integer numFormas;

	public static Integer getNumFormas() {
		return numFormas;
	}

	public static Rectangulo createRectangle(float x, float y, float width,
			float height, boolean co) {
		Rectangulo r = new Rectangulo(x, y, width, height, co);
		numFormas++;
		return r;
	}

	public static Circulo createCircule(float centerPointX, float centerPointY,
			float radius) {
		Circulo c = new Circulo(centerPointX, centerPointY, radius);
		numFormas++;
		return c;
	}

	public static Triangulo createTriangule(float[] pointsf) {
		Triangulo p = new Triangulo(pointsf);
		numFormas++;
		return p;
	}
}
